<template>
  <el-date-picker
    v-model="value"
    :type="type"
    :size="size"
    :label="options.label"
    :placeholder="options.placeholder"
    style="width: 100%"
    :style="options.style"
  />
</template>

<script setup lang="ts">
  export type ButtonOptions = {
    options: {
      label: String,
      size?: string,
      type?: string,
      style?: any
    },
    size:string
  }
  const props = defineProps<ButtonOptions>()
  const options = props.options
  const size = props.size || 'default'
  const type = options.type || 'date'
</script>

<style scoped>

</style>
